//页面导航路由
const { response, request } = require('express');
const express=require('express');//引入express模块
let route=express();//创建路由对象-局部作用域

//接收页面跳转请求
route.get('/welcome',(request,response)=>{
  response.render('welcome');
});

route.get('/index',(request,response)=>{
  response.render('index');
})

route.get("/thematicPage",(request,response)=>{
  response.render('thematicPage');
});

//导出当前模块
module.exports=function(){
  return route;
}
